package com.xunqi.content.feignclient.fallback;

import com.xunqi.common.dto.user.UserDTO;
import com.xunqi.content.feignclient.UserCenterFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-17 11:23
 **/
@Component
@Slf4j
public class UserCenterFeignClientFallback implements UserCenterFeignClient {

    @Override
    public UserDTO findById(Integer id) {
        UserDTO userDTO = new UserDTO();
        userDTO.setWxNickname("流控/降级返回的用户");
        log.info("流控/降级返回的用户");
        return userDTO;
    }
}
